Properties & Methods
Following is a list of properties and methods that you can use with VSFlexData:
AddFirst | |
Applies To | |
Array, Map | |
See Also | |
AddLast, Insert, Remove, RemoveAll | |
Description | |
This method adds an element to the first position of an existing array or a map. | |
Example | |
|
AddLast | |
Applies To | |
Array, Map | |
See Also | |
AddFirst, Insert, Remove, RemoveAll | |
Description | |
This method adds an element to the last position of an existing array or a map. | |
Example | |
|
Become | |
Applies To | |
All Types | |
See Also | |
Clone, Export, Import, GetObjectString, SetObjectString | |
Description | |
This method is used to copy the data from another VSFlexData object to itself. | |
Example | |
|
Clone | |
Applies To | |
All Types | |
See Also | |
Become, Export, Import, GetObjectString, SetObjectString | |
Description | |
This method is used to copy data from a given VSFlexData object to another. | |
Example | |
|
DebugPrint | |
Applies To | |
All Types | |
See Also | |
GetObjectString, SetObjectString, Version, Tag | |
Description | |
This method is mainly used for debugging. It displays the current data stored in the object. | |
Example | |
|
Exists | |
Applies To | |
All except Variant | |
See Also | |
Find | |
Description | |
Exists looks for a
specified datum in the object and returns True or False depending on whether that datum
currently exists in the object. NOTE |
|
Example | |
|
|
Export | |
Applies To | |
All Types | |
See Also | |
Become, Clone, Import, GetObjectString, SetObjectString | |
Description | |
Export is used to Export a VSFlexData object to a disk file. You can later load the object from a disk file using the Import method. | |
Example | |
|
Find | |
Applies To | |
All Types | |
See Also | |
Exists | |
Description | |
Find looks for a
specified datum in the object. If found, returns the position, otherwise returns -1. NOTE |
|
Example | |
|
GetKeys | |
Applies To | |
All Types | |
See Also | |
Map | |
Description | |
GetKeys method enumerates the keys of a Map and returns a VSFlexData of Array type. | |
Example | |
|
GetObjectString | |
Applies To | |
All Types | |
See Also | |
Become, Clone, Export, Import, SetObjectString | |
Description | |
GetObjectString
returns a string that contains the object data with type information. Later you can use SetObjectString to restore the object. The Import and Export
methods use GetObjectString and SetObjectString to import/export data to and from a disk
file. This method is provided in case you might want to export the object data to a binary
file or a database. NOTE: |
|
Example | |
|
Import | |
Applies To | |
All Types | |
See Also | |
Become, Clone, Export, GetObjectString, SetObjectString | |
Description | |
Import is used to import a text file previously written by the Export method. | |
Example | |
|
Insert | |
Applies To | |
Array | |
See Also | |
AddFirst, AddLast, Remove, RemoveAll | |
Description | |
This method is used to insert an element into an array type VSFlexData at a given position. | |
Example | |
|
Length | |
Applies To | |
All Types | |
See Also | |
Description | |
Returns the number of elements in the object. | |
Example | |
|
Pop | |
Applies To | |
Stack, Queue | |
See Also | |
Push | |
Description | |
This method is used to pop an element from a Stack or a Queue. In case of a stack, it returns the last element added by the Push method -- where as in case of a Queue, it returns the first element added by the Push method. | |
Example | |
|
Push | |
Applies To | |
Stack, Queue | |
See Also | |
Pop | |
Description | |
Adds an element to a stack or a queue. | |
Example | |
|
Remove | |
Applies To | |
Array, Map | |
See Also | |
AddFirst, AddLast, Insert, RemoveAll | |
Description | |
Removes a given element from an array or a map. | |
Example | |
|
RemoveAll | |
Applies To | |
Array, Map | |
See Also | |
AddFirst, AddLast, Remove, RemoveAll | |
Description | |
This method is used to remove all the elements from an array or a map. | |
Example | |
|
SetArray | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as an array. | |
Example | |
|
SetMap | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as a map. | |
Example | |
|
SetNil | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as a nil. | |
Example | |
|
SetObjectString | |
Applies To | |
All Types | |
See Also | |
Become, Clone, Export, Import, GetObjectString | |
Description | |
See GetObjectString | |
Example | |
|
SetQueue | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as a queue. | |
Example | |
|
SetSet | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as a set. | |
Example | |
|
SetStack | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as a stack. | |
Example | |
|
SetVariant | |
Applies To | |
See Also | |
Data Types | |
Description | |
This method is used to initialize the object as a variant, so that any of the Visual Basic intrinsic data types can be stored. By default, when you instantiate an object of VSFlexData, it is set as a variant. | |
Example | |
|
Tag | |
Applies To | |
All Types | |
See Also | |
DebugPrint, Version | |
Description | |
Tag is a property that you can use to identify the object. This property can be freely set to any string by the programmer and has no effect on the object whatsoever. It can be a great help in debugging especially if you are dealing with complex data structures. | |
Example | |
|
Version | |
Applies To | |
All Types | |
See Also | |
DebugPrint, Tag | |
Description | |
Returns the version of the VSFlexData DLL being used. | |
Example | |
|